// 获取部门列表
import request from '@/utils/request'
export function getDepartment() {
  return request({
    url: '/company/department'
  })
}
// 获取部门负责人
export const simple = () => request({
  url: '/sys/user/simple'
})
// 添加部门
export const addDepartment = (data) => request({
  method: 'POST',
  url: '/company/department',
  data
})
// 获取部门详情部门
export const getDepar = id => request({
  url: `/company/department/${id}`
})
// 修改部门
export const xiugai = (data) => request({
  method: 'PUT',
  url: `/company/department/${data.id}`,
  data
})
// 删除部门

export const remvDepa = (id) => request({
  method: 'DELETE',
  url: `/company/department/${id}`
})
